all: Main

Main: Main.o Rational.o
	g++ Main.o Rational.o -o Main
	
Rational: Rational.cpp
	g++ -c Rational.cpp
	
Main.o: Rational.h Main.cpp
	g++ -c Main.cpp

clean:
	rm -rf *o